package dao;



import java.util.List;

import org.mybatis.spring.SqlSessionTemplate;



import vo.CommunityVo;
import vo.XiegbeVo;

public class XiegbeDao {
	
	static XiegbeDao me;
	
	
	public XiegbeDao(){
		me=this;
	}
	public static XiegbeDao getDao() {
		return me;
	}
	
	///////////////////////////////////////////////

	SqlSessionTemplate sqlSession;

	public SqlSessionTemplate getSqlSession() {
		return sqlSession;
	}

	public void setSqlSession(SqlSessionTemplate sqlSession) {
		this.sqlSession = sqlSession;
	}
	
	//////////////////////////////////////////////////////
	
	public XiegbeVo selectXiege(int x_id){
		XiegbeVo xvo = sqlSession.selectOne("select_x_id", x_id);
		return xvo;
	}
	
	public List<XiegbeVo> selectXiegbeBoardAll(XiegbeVo xvo){
		List<XiegbeVo> list = sqlSession.selectList("select_xiegbe_list",xvo);
		return list;
	}
	

	/*public CommunityVo selectCommnunityBoardOne(int b_no){
		CommunityVo cvo = sqlSession.selectOne("select_community_board_one", b_no);
		return cvo;
	}
	*/
	
}
